#include<bits/stdc++.h>
using namespace std;

int main(){
    freopen("duel.in" , "r" , stdin);
    freopen("duel.out" , "w" , stdout);

    int n;
    cin >> n;
    int r[n + 2];
    bool use[n + 1] = {0};
    for(int i = 1 ; i <= n ; i ++){
        cin >> r[i];
    }
    sort(r + 1 , r + n + 1);

    int sum = n;
    int l = 1;
    for(int i = 2 ; i <= n ; i ++){
        while(use[l] && l <= n)l ++;
        if(use[i])continue;
        if(r[i] > r[l]){
            use[l] = 1;
            sum --;
            l ++;
        }
    }

    cout << sum;
    return 0;
}
